@import '../../sass/base/util/_scss_function';
@keyframes pop-show{
    0%{
        opacity: 0;
        @include transform(translateY(-100px));
    }
    100%{
        opacity: 1;
        @include transform(translateY(0px));
    }
}
@-webkit-keyframes pop-show{
    0%{
        opacity: 0;
        @include transform(translateY(-100px));
    }
    100%{
        opacity: 1;
        @include transform(translateY(0px));
    }
}
@-moz-keyframes pop-show{
    0%{
        opacity: 0;
        @include transform(translateY(-100px));
    }
    100%{
        opacity: 1;
        @include transform(translateY(0px));
    }
}
@keyframes pop-hide{
    0%{
        opacity: 1;
        @include transform(translateY(0px));
    }
    100%{
        opacity: 0;
        @include transform(translateY(100px));
    }
}
@-webkit-keyframes pop-hide{
    0%{
        opacity: 1;
        @include transform(translateY(0px));
    }
    100%{
        opacity: 0;
        @include transform(translateY(100px));
    }
}
@-moz-keyframes pop-hide{
    0%{
        opacity: 1;
        @include transform(translateY(0px));
    }
    100%{
        opacity: 0;
        @include transform(translateY(100px));
    }
}

// dialog 弹出层
.util-dialog{
    position: fixed;
    display: none;
    top: 0;
    bottom: 0;
    left: 0;
    right:0;
    z-index: 9999;
    & .mask{
        position: absolute;
        overflow: hidden;
        background: rgba(0,0,0,.3);
        left: 0;
        top:0;
        width: 100%;
        height: 100%;
    }
}
.util-dialog-cda{
    @include transform(translateY(-100px));
    background: #fff;
    z-index: 1;
    left: 50%;
    top:50%;
    overflow: hidden;
    box-shadow: 0 0 9px rgba(0,0,0,0.23);
    opacity: 0;
    filter:Alpha(opacity=0);

    &.fixed{
        position: fixed;
    }
    &.absolute{
        position: absolute;
    }
    &.pop,
    &.alt{
        &.show{
            @include animation(pop-show,.5s,.1s,1,cubic-bezier(0.1, 1.07, 1, 1));
            filter:Alpha(opacity=100);
        }
        &.hide{
            display: block!important;
            opacity: 1;
            @include transform(translateY(0px));
            @include animation(pop-hide,.5s,0,1,cubic-bezier(0.1, 1.07, 1, 1));
        }
    }
    &.pop{
        min-width: 300px;
    }
    &.alt{
        border-radius: 4px;
        padding-top: 10px;
        min-width:110px;
        & .icon-close{
            position: absolute;
            right: 5px;
            width: 23px;
            background: url(./img/closed.png) no-repeat center;
            background-size: contain;
            height: 23px;
            top: 5px;
        }
        & .dialog-title{
            margin: 0 10px;
            font-size: 18px;
            color: #333;
            display: block;
            text-align: center;
            border-bottom: 1px dotted #ccc;
            margin-bottom: 10px;
            padding-bottom: 10px;
            & .successl{
                width: 30px;
                background: url(./img/ok.png) no-repeat center;
                background-size: contain;
                height: 25px;
                display: inline-block;
                position: relative;
                top: 5px;
                margin-right: 5px;
            }
        }
        & .dialog-content{
            display: block;
            font-size: 15px;
            color: #999;
            padding:0 20px 15px;
            &.center{
                text-align: center;
            }
            &.left{
                text-align: left;
            }
            &.right{
                text-align: right;
            }
        }
        & .dialog-buttons{
            float: left;
            width:100%;
            min-width:200px;
            overflow: hidden;
            & .dialog-button {
                @include transition(.3s);
                font-size: 16px;
                color: #333;
                border-top:1px solid #ddd;
                line-height:40px;
                float: left;
                text-align: center;
                cursor: pointer;
                &.bd-l{
                    border-left:1px solid #ddd;
                }
                &.primary{
                    color: #de1e30;
                }
                &:hover{
                    background-color: #eee;
                }
            }
        }
    }
    & .hd-tip {
        height: 30px;
        border-bottom: 1px solid #eee;
        text-align: left;
        margin: 5px 10px;
        & .title {
            display: inline-block;
            padding: 0 35px;
            color: #de1e30;
            font-size: 16px;
            line-height: 30px;
            border-bottom: #de1e30 solid 2px;
            letter-spacing: 4px;
            font-family: 'microsoft yahei';
        }
    }
    & .icon-close {
        @include transition(.3s);
        position: absolute;
        right: 10px;
        top: 10px;
        cursor: pointer;
        font-size: 16px;
        color: #b3b3b3;
        &:hover{
            @include transform(scale(1.1) rotate(30deg));
            color: #000;
        }
    }
    & .dialog-content{

    }
    & .btn-box{
    }
}
